<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"      
      xmlns:h="http://java.sun.com/jsf/html">
    <f:view contentType="text/html"/>
	<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link href="/cultbookweb/includes/css/theme.css" media="screen" rel="stylesheet" type="text/css" />
	<link href="/cultbookweb/includes/css/theme_override.css" media="screen" rel="stylesheet" type="text/css" />
	<link href="/cultbookweb/includes/css/style.css" media="screen" rel="stylesheet" type="text/css" />
	<title>Cultbook</title>
	</h:head>
    <h:body>
	<div id="container">
		<div id="header">

			<h1>
				<a href="/cultbookweb">Trabalho da Pós</a>
			</h1>
			<div id="user-navigation">
				<ul class="wat-cf">
					<li><span style="color: #0066CC;">Olá!!</span></li>
					<li><a href="/cultbookweb/faces/pages/carrinho.xhtml" class="logout">Meu Carrinho</a>
					</li>
				</ul>
			</div>
			<div id="main-navigation">
				<ul class="wat-cf">
					<li><a href="#">&nbsp;</a>
					</li>
				</ul>
			</div>
		</div>
		<div id="wrapper" class="wat-cf">
			<div class="flash"></div>
			<div id="main">

				<div class="block">
					<div class="content">
						<h2 class="title">Detalhes do Livro</h2>

						<div class="inner">
							<table class="table">
								<tr>
									<td id="photo" rowspan="6"></td>
                                    <td>Título: <h:outputText value="#{listaLivrosBean.livroSelecionado.titulo}" /></td>
								</tr>
                                <tr>
                                	<td>ISBN: <h:outputText value="#{listaLivrosBean.livroSelecionado.isbn}" /> </td>
                                </tr>
                                <tr>
                                	<td>Autor: <h:outputText value="#{listaLivrosBean.livroSelecionado.autor}" /></td>
                                </tr>
                                  <tr>
                                	<td>Preço: <h:outputText value="#{listaLivrosBean.livroSelecionado.preco}" /></td>
                                </tr>                              
                                

							</table>
							<div class="actions-bar wat-cf">

								<div class="actions">
								</div>

							</div>
						</div>
					</div>
				</div>


				<div id="footer">
					<div class="block">
					   <h:form id="backList">	
					  	 <h:commandButton action="#{listaLivrosBean.listarLivros}" value="Voltar" /> | 
					  	 <h:commandButton action="#{pedidoBean.comprar(listaLivrosBean.livroSelecionado)}" value="Comprar" />
					   </h:form>
					</div>
				</div>
			</div>
		</div>
	</div>
</h:body>
</html>
